package com.bw.entity;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class User {

    private Integer id;

    @NotBlank(message = "用户名不为空")
    private String name;

    @NotBlank(message = "密码不为空")
    private String pwd;

    private String salt;

    private String nickName;

    private String avatarUrl;

    private Integer giteeId;


}
